home *** CD-ROM | disk | FTP | other *** search
- ////////////////////////////////////////////////////////////////////////////////////////////
- //
- // PRODUCT: Norton Internet Security/Symantec Desktop Firewall
- //
- // NAME: wiz-AccountMode.htm.js (Javascript file for wiz-AccountMode.HTM)
- //
- // Copyright (c) by Symantec Corporation. All rights reserved.
- //
- ////////////////////////////////////////////////////////////////////////////////////////////
-
- function OnTabOver()
- {
- // Last Control Tab over to the <back, next, close> button.
- var VK_TAB = 9;
- if (window.event.keyCode == VK_TAB)
- window.parent.frames("bottom",0).focus();
- }
-
- function Page_GoNext()
- {
- if(AccountModeSel[0].checked)
- {
- // Now switch the User Mode behind the scenes
- if(PCWizHelper.bWinUserOK == true)
- {
- parent.window.SetAccountMode(0);
-
- // To Speed things up we only want to "Switch" the mode if it is
- // if it is currently different
- if(PCWizHelper.bWindowsAccount == false)
- PCWizHelper.SetWindowsAccount(true);
- }
- else
- {
- PCWizHelper.MultiUserWarning();
- return false;
- }
-
- }
- else
- {
- parent.window.SetAccountMode(1);
-
- // To Speed things up we only want to "Switch" the mode if it is
- // if it is currently different
- if(PCWizHelper.bWindowsAccount == true)
- PCWizHelper.SetWindowsAccount(false);
- }
-
- return true;
- }
-
- function Page_GoBack()
- {
- return true;
- }
-
- function OnLoad()
- {
- if (PCWizHelper.bWinUserOK)
- {
- AccountModeSel[0].checked = true;
- AccountModeSel[1].checked = false;
- }
- else
- {
- AccountModeSel[0].checked = false;
- AccountModeSel[1].checked = true;
- }
-
- window.NISTitleName1.innerText = WrapNisum.ProductName;
- window.NISTitleName2.innerText = WrapNisum.ProductName;
- window.NISTitleName3.innerText = WrapNisum.ProductName;
-
- // If NIS Pro change the text string.
- // Modify Parental/Productivity Text HERE..
- var sProductType = WrapNisum.ProductType
-
- if(sProductType == "PT_PRO")
- {
- window.ParentalProductivitySupervisor1.innerText = StrID("ParentalProductivitySupervisors_NISPRO_LowerCase");
- }
- }
-
- function OnKeyDownHandler()
- {
- // Last Control Tab over to the <back, next, close> button.
- var VK_ESCAPE = 27;
-
- if (window.event.keyCode == VK_ESCAPE)
- {
- // Escape key.. We want to exit out of the wizard..
- parent.window.navigate("res://closeme.xyz");
- }
- }
-
- function OnUnLoad()
- {
- // Disable Next button, so user cannot constantly click.
- window.parent.frames("bottom").NextB.disabled = true;
- }